package http

import "micro-oauth/datamodels/autherror"

func HexErrorToResponse(err autherror.HexError) map[string]interface{} {
	return map[string]interface{}{
		"status_code": ErrorCode,
		"code":        err.Code(),
		"description": err.Description(),
	}
}
